<!DOCTYPE html>
  <html>
  <head>
      <meta charset="utf-8">
      <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
      <title>title</title>
      <link rel="stylesheet" type="text/css" href="../../../css/api.css"/>
      <style>
      *{ margin: 0; padding: 0}
          body{
          }
          div#div1{
    position:fixed;
    top:0;
    left:0;
    bottom:0;
    right:0;
    z-index:-1;
}
div#div1 > img {
    height:100%;
    width:100%;
    border:0;
}

          #header button{color: #fff;background-color:rgba(0,0,0,0);font-size: 12px;line-height: 19px;border-radius:10px;position: fixed;top：30%;right: 30px;;border: none;width:55px;height: 19px;outline: none;box-sizing: border-box;border: 1px solid #fff;}
          #header button:focus{outline: none}
      </style>
  </head>
  <body>
      <header  id="header"><button onclick="closeWin()">跳过</button></header>
    <div id="div1"><img src="../../image/yd1.jpg" id="img"/></div>
  </body>
  <script type="text/javascript" src="../../script/api.js"></script>
  <script type="text/javascript">
      apiready = function(){

        var header = $api.byId('header');
        $api.fixStatusBar(header);
        var headerPos = $api.offset(header);
        api.sendEvent({
            name: 'index',
            extra: {
                open: 'index',
            }
        });
        if($api.getStorage("yindao1")){
          $api.attr($api.byId('img'),'src',$api.getStorage("yindao1"));
          console.log(  $api.attr($api.byId('img'),'src'));
        }

      };



      function closeWin(){
        api.closeWin()
        $api.setStorage("introist","true")
      }
  </script>
  </html>
